<table  class="table table-bordered no-margin">
<thead>
<tr>
 {% for name in columns %}  
    <th>{{ name }}</th>
  {% endfor %}  
</tr>
</thead>
<?php foreach ($this->paginator as ${{ tablename }}) : ?>
<tr>
	{% for name,value in columns %}  
    <td><?php echo $this->escapeHtml(${{ tablename }}->{{ name }});?></td>
  {% endfor %}  
</tr>
<?php endforeach; ?>
</table>

<?php
// add at the end of the file after the table
 echo $this->paginationControl(
     // the paginator object
     $this->paginator,
     // the scrolling style
     'sliding',
     // the partial to use to render the control
     'partial/ajax-paginator.phtml',
     // the route to link to when a user clicks a control link
     array(
         'route' => $this->url('crm/order',
            array('action'=>'ajax-order-list-table')),
         'params_string' => ''
     )
);
?>